package common;

import java.io.Serializable;

/**
 * This class is used to pass the information between client and server. 
 * Due to the nature of this application it is convenient that the informational data is passed
 * between client and server by means of serializable classes. 
 * This kind of simplification is completely sufficient for our needs. <br>
 * It implements basic methods used frequently in the rest of the code.<br>
 * Class implements interface Serializable for it is often a return object of return method. 
 */
public class ServerStoreResult implements Serializable {
	/**
	 * The serial version unique identifier (SUID) of a class is a 64-bit hashcode computed from all the
	 * class's properties: its classname, the names of all interfaces which it implements, and the names
	 * and signatures of its member functions and fields. The SUID is identical for all versions of a class
	 * which are compatible under serialization.
	 * The serial version unique identifier (SUID) of a class is a 64-bit hashcode computed from all the
	 * class's properties: its classname, the names of all interfaces which it implements, and the names
	 * and signatures of its member functions and fields. The SUID is identical for all versions of a class
	 * which are compatible under serialization.
	 */
	private static final long serialVersionUID = 8897185888453102360L;
	/**
	 * Size of a package in bytes. 
	 */
	public final int packageSize; 
	/**
	 * Integer identifying file to be stored in the cloud. 
	 */
	public final int ID;
	/**
	 * Basic constructor of a class. 
	 * @param ID  Integer identifying file to be stored in the cloud. 
	 * @param packageSize Size of a package in bytes. 
	 */
	public ServerStoreResult(int ID, int packageSize){
		this.ID = ID;
		this.packageSize = packageSize;
	}	
}
